package com.mairuide.platrole;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.mairuide._frame.base.BaseModel;

/**
 * 平台角色
 * @author mh
 *
 */
@Entity
@Table(name="tb_plat_role")
public class PlatRole extends BaseModel {
	
	/**
	 * 主键
	 */
	@Id
	@Column(name="role_id")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "plat_role")
	@SequenceGenerator(name = "plat_role", sequenceName = "SEQ_PLAT_ROLE",allocationSize=1)
	private Integer roleId;
	
	/**
	 * 角色编码
	 */
	@Column(name="role_code")
	private String roleCode;
	
	/**
	 * 角色名
	 */
	@Column(name="role_name")
	private String roleName;
	
//	/**
//	 * 模块代码
//	 */
//	@Column(name="module_codes")
//	private String moduleCodes;
	
	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

//	public String getModuleCodes() {
//		return moduleCodes;
//	}

//	public void setModuleCodes(String moduleCodes) {
//		this.moduleCodes = moduleCodes;
//	}
	
}
